package com.cuitrip.business.tripservice;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.cuitrip.business.home.IndexActivity;
import com.cuitrip.service.R;
import com.lab.app.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import de.hdodenhof.circleimageview.CircleImageView;

/**
 * Created on 7/28.
 */
public class CreateServiceSuccessActivity extends BaseActivity {


    @Bind(R.id.complete_info_guide)
    protected LinearLayout completeInfoView;

    @Bind(R.id.submit_action)
    TextView submitAction;

    @Bind(R.id.author_img)
    CircleImageView authorImg;

    @Bind(R.id.return_action)
    View returnAction;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ct_create_service_sucess);
        ButterKnife.bind(this);
        initData();
    }

    @OnClick(R.id.return_action)
    public void returnTripList() {
        IndexActivity.gotoTab(this, IndexActivity.SERVICE_TAB_INDEX);
        finish();
    }

    private void initData() {
        completeInfoView.setVisibility(View.GONE);
        returnAction.setVisibility(View.VISIBLE);
        submitAction.setVisibility(View.GONE);
    }
}
